package ClientAdmin;

import java.util.GregorianCalendar;


import Both.Trajet;
import Both.Transport;
import Both.Ville;

/**
 * Classe permettant d'effectuer des demandes de modification d'un client
 * administrateur
 * 
 * @author user
 * 
 */
public class DemandeModificationTrajet {
    // Definir tous les champs de recherche possible
    GregorianCalendar dateArrive;
    GregorianCalendar dateDepart;
    int placeOccuper;
    Transport trans;
    Ville villeArrive;
    Ville villeDepart;
    Trajet old;
    Trajet newtraj;

    /**
     * Premier contructeur
     * 
     * @param newTrans
     * @param oldTrans
     */
    public DemandeModificationTrajet(Trajet old, GregorianCalendar dateDepart,
            GregorianCalendar dateArrive, int placeOccuper, Transport trans,
            Ville villeDepart, Ville villeArrive) {

        super();
        this.dateArrive = dateArrive;
        this.dateDepart = dateDepart;
        this.placeOccuper = placeOccuper;
        this.trans = trans;
        this.villeArrive = villeArrive;
        this.villeDepart = villeDepart;
        this.old = old;
    }

    /**
     * Sedond constructeur
     * 
     * @param newTrans
     * @param nom
     * @param description
     * @param num
     * @param capacite
     */
    public DemandeModificationTrajet(Trajet old, Trajet newtraj) {
        this.dateArrive = null;
        this.dateDepart = null;
        this.placeOccuper = 0;
        this.trans = null;
        this.villeArrive = null;
        this.villeDepart = null;
        this.old = old;
        this.newtraj = newtraj;
    }

    public GregorianCalendar getDateArrive() {
        return dateArrive;
    }

    public GregorianCalendar getDateDepart() {
        return dateDepart;
    }

    public int getPlaceOccuper() {
        return placeOccuper;
    }

    public Transport getTrans() {
        return trans;
    }

    public Ville getVilleArrive() {
        return villeArrive;
    }

    public Ville getVilleDepart() {
        return villeDepart;
    }

    public Trajet getOld() {
        return old;
    }

    public Trajet getNewtraj() {
        return newtraj;
    }
}
